package com.headwind.logistics.operation.service.inter;

import com.headwind.logistics.common.pojo.FetchMoney;


import com.headwind.logistics.operation.dto.FetchMoneyPaymentTransportUserDto;
import com.headwind.logistics.operation.pojo.WithdrawMoney;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 周鑫
 * @Date 2020/7/16 15:32
 * @Version 1.0
 * @DESCRIPTION 业务逻辑层接口
 */
public interface WithdrawMoneyBizInter {
    /**
     * 查询所有和分页

     * @return dto集合
     */
    public List<FetchMoneyPaymentTransportUserDto> queryWithdrawMoneyBizInter(@Param("page") Integer page, @Param("rows") Integer rows);


    /**
     * 根据id修改余额提现审核状态
     * @param checkMoneyId 主键id
     * @return int
     */
    public int updateWithdrawMoneyBizInter(int checkMoneyId);


    /**
     * 根据id修改余额提现审核状态
     * @param checkMoneyId 主键id
     * @return int
     */
    public int updateWithdrawMoneyBizInterTow(int checkMoneyId);

    /**
     * 根据id修改余额提现审核状态
     * @param checkMoneyId 主键id
     * @return int
     */
    public int updateWithdrawMoneyBizInterThree(int checkMoneyId);

    /**
     * 根据id修改余额提现审核状态
     * @param checkMoneyId 主键id
     * @return int
     */
    public int updateWithdrawMoneyBizInterFour(int checkMoneyId);


    /**
     * 根据id修改状态和原因
     * @param withdrawMoney 模型层
     * @return int
     */
    public int updateWithdrawMassageBizInter(WithdrawMoney withdrawMoney);

    /**
     * 根据id修改状态和原因
     * @param withdrawMoney 模型层
     * @return int
     */
    public int updateWithdrawMassageTowBizInter(WithdrawMoney withdrawMoney);

    /**
     * 根据id修改提现金额
     * @param checkMoneyId 主键id
     * @param fetchPrice 提现金额
     * @return int
     */
    public int updateWithdrawFetchPriceBizInter(Integer checkMoneyId, Double fetchPrice, Double money);
}